<template>
  <div>
    Current Language: {{ translation }}
  </div>
</template>

<script setup lang="ts">
import { inject computed} from "vue";
const language = inject("language");

const translations = inject("translations");
const translation = computed(() => {
  return translations[language.value];
});

return {
  language,
  translation
}
</script>

<style>
</style>